﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.ScheduleJob.SPI
{
    /// <summary>
    /// 计划任务订阅通知设置
    /// </summary>
    public class ScheduleJobSubscriptionNoticeSet
    {
        public string ID { get; set; }
        public string ScheduleJobSubscriptionID { get; set; }
        public int SortOrder { get; set; }
        public string SubscriptionNoticeDefinitionID { get; set; }
        public SubscriptionNoticeDefinition SubscriptionNoticeDefinition { get; set; }
        public NoticeContentType NoticeContentType { get; set; }
        public string NoticeContent { get; set; }
        /// <summary>
        /// 群通知模式下需要指定钉钉群的Token信息
        /// </summary>
        public string TokenInfo { get; set; }
        /// <summary>
        /// 群通知模式下需要指定钉钉群的Secret信息
        /// </summary>
        public string SecretInfo { get; set; }
        /// <summary>
        /// 群通知模式下是否要同步@具体的人员
        /// </summary>
        public bool IsNeedAtPerson { get; set; }
        /// <summary>
        /// 群通知模式下如果要@具体的人员,指定人员的字段Code
        /// </summary>
        public string PersonField { get; set; }
    }
}
